package com.ruoyi.web.controller.open;

import com.ruoyi.common.core.domain.AjaxResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/open")
public class Test {

    @GetMapping(value = "/test")
    public AjaxResult test(){
        return AjaxResult.success("jdk");
    }

    @PostMapping(value = "test2")
    public AjaxResult rest2(){
        return AjaxResult.error("error","test9");
    }

    @GetMapping(value = "test3")
    public AjaxResult rest3(){
        return AjaxResult.error("error","test3");
    }
}
